<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="dashboard/header :: header"></head>
<body>

<!--
@desc  添加
@author LuoAnDong
@since 2019-05-20 22:20:43
-->
	<div layout:fragment="content">
		<div class="container-fluid content-main">
			<div class="animated fadeIn">
				<div class="row">
					<!-- /.col-->
					<div class="col-sm-12">
						<div class="card">
							<div class="card-body">

								<form class="form-horizontal" id="addForm" style="float:left;width:100%">
								
									<input type="hidden" name="formToken" th:value="${session.formToken}" />

<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">链接地址</label>
	<div class="col-md-9">
		<input class="form-control" id="linkPath" type="text" name="linkPath" placeholder="链接地址">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">链接图标</label>
	<div class="col-md-9">
		<input class="form-control" id="linkLogo" type="text" name="linkLogo" placeholder="链接图标">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">链接描述</label>
	<div class="col-md-9">
		<input class="form-control" id="linkDesc" type="text" name="linkDesc" placeholder="链接描述">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">链接打开状态</label>
	<div class="col-md-9">
		<input class="form-control" id="linkTarget" type="text" name="linkTarget" placeholder="链接打开状态">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">链接描述</label>
	<div class="col-md-9">
		<input class="form-control" id="linkDesign" type="text" name="linkDesign" placeholder="链接描述">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">链接类型</label>
	<div class="col-md-9">
		<input class="form-control" id="linkType" type="text" name="linkType" placeholder="链接类型">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">链接排序</label>
	<div class="col-md-9">
		<input class="form-control" id="linkSort" type="text" name="linkSort" placeholder="链接排序">
	</div>
</div>
<div class="form-group row margin-right-0">
	<label class="col-md-3 col-form-label" for="text-input">链接名称</label>
	<div class="col-md-9">
		<input class="form-control" id="linkName" type="text" name="linkName" placeholder="链接名称">
	</div>
</div>
							
								</form>
							</div>

							<!-- 
							<div class="card-footer">
								<button class="btn btn-primary" style="float:right" onclick="save()" type="button">保存</button>
							</div>
							-->

						</div>
					</div>
					<!-- /.col-->
				</div>
			</div>
		</div>

	</div>

	<footer th:replace="dashboard/footer :: footer"></footer>

	<script type="text/javascript">
	
		// 保存操作
		/*
		function save() {
			console.log('save');
			$("#addForm").ajaxSubmit({
				url : ctx+"portal/desktop/web/linkPath/save",
				type : "POST",
				headers : {
					'Content-Type' : 'application/x-www-form-urlencoded'
				},
				success : function(data) {
					if (data.code == 200) {
						layer.msg("操作成功!");
					} else {
						layer.alert(data.message);
					}
				}
			});
		}
		*/
		
		function submitHandler() {
			$.operate.save(ctx+"portal/desktop/web/linkPath/save" , $('#addForm').serialize());
	    }
		
	</script>

</body>
</html>

